var sresponse='#smiley_ajax';
$(document).ready(function smiley_ajax(){
	$('textarea').focus(function() {
		$.ajax({
			url: "",
			type:"POST",
			data:"action=smiley_ajax_action",
			beforeSend:function()
			{
				$(sresponse).fadeTo("slow",0.00);
			},
			error:function (xhr, textStatus, thrownError){ 
				alert("readyState: " + xhr.readyState + " status:" + xhr.status + " statusText:" + xhr.statusText +" responseText:" +xhr.responseText + " responseXML:" + xhr.responseXML + " onreadystatechange" +xhr.onreadystatechange); 		
				alert(thrownError); 
			},	
			success: function (data)
			{
				$(sresponse).html(data);
				$(sresponse).fadeTo("slow",1.00);
			}
		});
		return false;
		});
})